package com.example.springboot.controller.dto;

import lombok.Data;

/**
 * 返回用户的类型
 */
@Data
public class JsonResponse<T> {
    private int code;
    private String msg;
    private T data = null;

    public JsonResponse(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
